package com.utils;

/**
 * @ProjectName: shop
 * @Author: Jsx
 * @Time: 2020/8/30 11:43
 * @Description:
 */
public class Constants {

    //转发和重定向的动作

    public static final String FORWARD_ACTION = "forward:";
    public static final String REDIRECT_ACTION = "redirect:";
    public static final String FLAG = ":";


    //json模型的状态

    public static final int MESSAGE_SUCCESS = 1;
    public static final int MESSAGE_FAIL = 0;

    //用户的激活状态

    public static final int ACTIVE_CODE = 1;
    public static final int NOT_ACTIVE_CODE = 0;


    public static final int COMMON_USER  = 1;
    public static final int ADMIN_USER = 0;


    public static final int HASED_ACTIVE  = 2;
    public static final int ACTIVE_SUCCESS = 1;
    public static final int ACTIVE_FAIL = 0;

    /**
     * 自动登录的cookie名
     */
    public static final String AUTO_NAME ="autoUser";


}
